/*
* @Date: 2020/6/10
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/

export default {
  props: [{
    key: 'prefixCls',
    type: 'string',
    label: '样式前缀'
  }, {
    key: 'tabs',
    type: 'array',
    struct: [
      { key: 'title', type: 'string' },
      { key: 'key', type: 'string' },
      ],
    label: 'tab数据',
  }, {
    key: 'tabBarPosition',
    type: 'select',
    options: ['top', 'bottom', 'left', 'right'],
    label: '位置',
  }, {
    key: 'initialPage',
    type: 'string',
    label: '初始Tab',
  }, {
    key: 'page',
    type: 'string',
    label: '当前Tab'
  }, {
    key: 'swipeable',
    type: 'checked',
    label: '滑动切换',
  }, {
    key: 'useOnPan',
    type: 'checked',
    label: '跟手滚动',
  }, {
    key: 'prerenderingSliblingsNumber',
    type: 'number',
    label: '预加载数量',
  }, {
    key: 'animated',
    type: 'checked',
    label: '启用切换动画'
  }, {
    key: 'onChange',
    type: 'function',
    label: 'onChange',
  }, {
    key: 'onTabClick',
    type: 'function',
    label: '点击回调',
  }, {
    key: 'destroyInactiveTab',
    type: 'checked',
    label: '销毁超出Tab'
  }, {
    key: 'distanceTabChangeTab',
    type: 'number',
    label: '滑动阈值',
  }, {
    key: 'usePaged',
    type: 'checked',
    label: '启用分页'
  }, {
    key: 'tabDirection',
    type: 'select',
    options: ['horizontal', 'vertical'],
    label: 'Tab方向',
  }, {
    key: 'tabBarUnderlineStyle',
    type: 'style',
    label: '下划线样式',
  }, {
    key: 'tabBarBackgroundColor',
    type: 'color',
    label: '背景色',
  }, {
    key: 'tabBarActiveTextColor',
    type: 'color',
    label: '激活颜色',
  }, {
    key: 'tabBarInactiveTextColor',
    type: 'color',
    label: '非激活颜色',
  }, {
    key: 'tabBarTextStyle',
    type: 'style',
    label: '文字样式',
  }],
  /**
   * children渲染函数
   * @param param 参数
   */
  childRender: (param, page) => {
    return (
      <div className="sortable view-item-box sub">

      </div>
    )
  },
}
